package com.zhentao.model.common.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user_order
 */
@TableName(value ="user_order")
@Data
public class UserOrder implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 商家id
     */
    @TableField(value = "business_id")
    private Integer businessId;

    /**
     * 订单状态（待支付0、已支付1、待发货2、已发货3、已完成4、已取消5）
     */
    @TableField(value = "order_status")
    private Long orderStatus;

    /**
     * 订单总金额
     */
    @TableField(value = "total_amount")
    private Integer totalAmount;

    /**
     * 实际支付金额
     */
    @TableField(value = "pai_amount")
    private Integer paiAmount;

    /**
     * 订单创建时间
     */
    @TableField(value = "order_create_time")
    private Date orderCreateTime;

    /**
     * 订单更新时间
     */
    @TableField(value = "order_update_time")
    private Date orderUpdateTime;

    /**
     * 支付时间
     */
    @TableField(value = "payment_time")
    private Date paymentTime;

    /**
     * 支付方式（微信1  支付宝2）
     */
    @TableField(value = "payment_method")
    private Long paymentMethod;

    /**
     * 物流单号
     */
    @TableField(value = "logistic_number")
    private Long logisticNumber;

    /**
     * 物流状态（待发货0、已揽收1、运输中2、已签收3）
     */
    @TableField(value = "logistic_status")
    private String logisticStatus;

    /**
     * 收货地址id
     */
    @TableField(value = "address_id")
    private Long addressId;

    /**
     * 备注信息
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 商品列表，这个字段可能以JSON或其他格式存储
     */
    @TableField(value = "good_list")
    private String goodList;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}